package com.gitee.cashzhang27.test.boot.functional.properties;

import java.util.HashSet;
import java.util.Set;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Redisson 主从模式.
 *
 * @author Cash Zhang
 * @version v1.0 2020/09/17 22:38
 * @since v1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ConfigurationProperties(prefix = "spring.redis.redisson.master-slave")
public class RedissonMasterSlaveServerProperties extends RedissonBaseMasterSlaveServerProperties {

  /**
   * 从节点列表.
   */
  private Set<String> slaveAddresses = new HashSet<>();

  /**
   * 主节点.
   */
  private String masterAddress;

}
